package com.xxgc.springboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 定时任务表
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-09-20
 */
@Getter
@Setter
  @TableName("task_info")
@ApiModel(value = "TaskInfo对象", description = "定时任务表")
public class TaskInfo implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("任务id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("工作策略名")
      private String detailName;

      @ApiModelProperty("工作策略分组")
      private String detailGroup;

      @ApiModelProperty("触发器名")
      private String triggerName;

      @ApiModelProperty("触发器分组")
      private String triggerGroup;

      @ApiModelProperty("cron表达式")
      private String cron;

      @ApiModelProperty("打工人")
      private String detailJob;

      @ApiModelProperty("打工状态")
      private Integer jobFlag;

      @ApiModelProperty("有效列")
      private Boolean flag;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;


}
